package org.MyToolsProject;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * Hello world!
 *
 */
public class OperateDirApp {
    public static void main( String[] args ){
        List<Node> nodeList = new ArrayList<>(10);
        for (int i = 0; i < 10; i++) {
            nodeList.add(new Node(i+"",i));
        }
        Collections.sort(nodeList, new Comparator<Node>() {
            @Override
            public int compare(Node o1, Node o2) {
                return o2.getSort() - o1.getSort();
            }
        });
        System.out.println(nodeList.size());
    }
}
